package net.dgg.iboss.sc.backservice.task.service;

import net.dgg.iboss.sc.backservice.task.dao.OrgRecorderDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 组织机构Service类
 * Created by IntelliJ IDEA.
 * Developer:Liu Yao
 * Date:2018/2/24
 * Time:11:08
 */

@Service
public class OrganizationManager {

    @Autowired
    OrgRecorderDAO orgRecorderDAO;

    /**
     * 查询下面所有部门ID
     *
     * @param orgId
     * @return
     */
    public List<Long> findOrgIdsByPId(Long orgId) {
        return orgRecorderDAO.findOrgIdsByPId(orgId);
    }


}
